package com.example.clxy.dao;

import com.example.clxy.entity.University;
import com.example.clxy.result.business.PageResult.UniversityPageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UniversityMapper {
    int deleteByPrimaryKey(String universityid);

    int insert(University record);

    int insertSelective(University record);

    List<UniversityPageResult> getUniversitybyname(@Param("universityname") String universityname,
                                                         @Param("begin")int begin,
                                                         @Param("end")int end,
                                                         @Param("pagesize")int pagesize);

    List<UniversityPageResult> getUniversitybyid(@Param("universityid") String universityid,
                                                 @Param("begin")int begin,
                                                 @Param("end")int end,
                                                 @Param("pagesize")int pagesize);

    int updateByPrimaryKeySelective(University record);

    int deleteByid(String universityid);

    int updateByPrimaryKey(University record);
}